import HyRequest from './request'
export function getBanners(){
  return HyRequest.get('/banner',{
    type:2
  })
}

export function getRanking(idx){
  return HyRequest.get('/top/list',{
    idx
  })
}

export function getSongMenu(cat='全部',limit=6,offset=0){
  return HyRequest.get('/top/playlist',{
    cat,
    limit,
    offset
  })
}

export function getSongMenuDetail(id){
  return HyRequest.get('/playlist/detail/dynamic',{
    id
  })
}